import { Component, OnInit } from '@angular/core';
import { BackEndService } from '../app-backend/backend.service';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {

  title = 'app';

  constructor(private b: BackEndService) {
  }

  ngOnInit(): void {
    this.b.consoleHello().subscribe(data => {
      console.log(data);
    });
  }


}
